Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch mapping to openMINDS Python classes #9

Merged
merged 15 commits into from
Jun 21, 2024
Merged

Conversation

lzehl
Copy link
Member

@lzehl lzehl commented Apr 2, 2024

Started to solve / tackle #7

Suggestion:

  1. Switch mapping dict to openMINDS instance names.
  2. Make use of instance functionality of openMINDS Python: TYPE.by_name("INSTANCENAME")
    For2. Maybe introduce utility function to make instance reference and adding instance to collection (optional) at the same time.

@apdavison @Peyman-N please let me know if you agree with this approach before I continue with this PR.

Copy link
Member

@apdavison apdavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@lzehl
Copy link
Member Author

lzehl commented Jun 4, 2024

@Peyman-N Peyman-N mentioned this pull request Jun 10, 2024
8 tasks
@lzehl lzehl self-assigned this Jun 17, 2024
lzehl added 2 commits June 17, 2024 13:12
set all undefined/non discussed to None
@lzehl
Copy link
Member Author

lzehl commented Jun 17, 2024

@Peyman-N I reduced to what we currently know. Some PRs in instances are still missing for making the mapping run.

@lzehl
Copy link
Member Author

lzehl commented Jun 17, 2024

@Peyman-N please replace the respective code in the conversion for the mapping (using openMINDS python extract instance by name function)

Note for Technique you need to try / loop over these types AnalysisTechnique, StimulationApproach, StimulationTechnique or Technique

@Peyman-N Peyman-N marked this pull request as ready for review June 20, 2024 14:14
@lzehl
Copy link
Member Author

lzehl commented Jun 21, 2024

@Peyman-N I forgot MRIPulseSequence in the list of technique types to loop over

@apdavison apdavison merged commit 7edd2c2 into main Jun 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants